import request from '@/utils/request'

// 查询企业安全档案列表
export function listOpmFoodCompanyFile(query) {
  return request({
    url: '/food/opmFoodCompanyFile/list',
    method: 'get',
    params: query
  })
}

// 查询企业安全档案详细
export function getOpmFoodCompanyFile(id) {
  return request({
    url: '/food/opmFoodCompanyFile/' + id,
    method: 'get'
  })
}

// 新增企业安全档案
export function addOpmFoodCompanyFile(data) {
  return request({
    url: '/food/opmFoodCompanyFile',
    method: 'post',
    data: data
  })
}

// 修改企业安全档案
export function updateOpmFoodCompanyFile(data) {
  return request({
    url: '/food/opmFoodCompanyFile',
    method: 'put',
    data: data
  })
}

// 删除企业安全档案
export function delOpmFoodCompanyFile(id) {
  return request({
    url: '/food/opmFoodCompanyFile/' + id,
    method: 'delete'
  })
}
